{* $Id: task_summary.html 11109 2012-06-06 04:57:50Z qianym $ *}
<style type="text/css">
  p { margin:0px; padding:0px; font-size:14px; line-height:20px; }
  .task-tit { font-weight:bold; font-size:15px; }
  .green-text { color:green; }
  .old-text { color:#aaa; border:1px dashed #aaa; }
  .new-text { color:green; border:1px dashed green; }
  .margin-t20 { margin-top:20px; }
  .margin-b15 { margin-bottom:15px; }
  .margin-b5 { margin-bottom:5px; }
  .task-overview { background:#efefef; font-weight:bold; padding:3px 0; }
</style>
{if $task_info}
  <p class="task-overview" style="background:#efefef; font-weight:bold; padding:3px 0;">任务概况</p>
  <p class="green-text">{task_helper::strip_html($task_info['content'], 500)}</p>
  <p><a href="{AnUrl("task/{$task_info['id']}")}">{AnUrl("task/{$task_info['id']}")}</a></p>
  <p class="margin-b5">
    <p><b>{user_helper::display_name($task_info.user_id)}</b> 分派给: {{user_helper::display_name($task_info.assign_id)}}</p>
    {if $follower_count > 0}
        <p>共&nbsp;<b>{$follower_count}</b>&nbsp;个关注者：
        {$follower_string = follower_helper::generate_follower_to_string($follower_list)}
        {$follower_string}
      </p>
    {else}
      <p>暂无关注者</p>
    {/if}
    {if $comment_list}
    <p>共&nbsp;<b>{count($comment_list)}</b>&nbsp;条评论 </p>
    {else}
      <p>暂无评论</p>
    {/if}
  </p>
  {if $comment_list}
    <p class="task-overview" style="background:#efefef; font-weight:bold; padding:3px 0;">最新评论</p>
    {foreach $comment_list as $k=>$v}
      {if $k == 5}{break}{/if}
      <p class="margin-b15">
        <p>{user_helper::display_name($v['user_id'])}&nbsp;&nbsp;&nbsp;&nbsp;{time_format($v['update_time'])}</p>
        <p class="green-text">{task_helper::strip_html($v['content'], 500)}</p>
      </p>
    {/foreach}
  {/if}
{/if}